package Practice03;

public class Time {
    private int hour;
    private int minute;
    private int second;
    public Time(){
        hour = 0;
        minute = 0;
        second = 0;
    }
    public Time(int hour, int minute, int second){
        this.hour = hour;
        this.minute = minute;
        this.second = second;
    }
    public void showTime(){
        System.out.println(hour+":"+minute+":"+second);
    }
    public void setTime(int hour, int minute, int second){
        this.hour = hour;
        this.minute = minute;
        this.second = second;
    }
}
